package service;

import com.github.pagehelper.PageInfo;
import entity.Admin;
import entity.LayRequest;
import entity.Resource;
import entity.Role;

import java.util.List;

public interface RoleService {
    boolean insert(Role role);

    List<Resource> selectByRoleId(Integer roleid);

    List<Role> selectAll();

    boolean delete(Integer id);

    int update(Role role);

    Role selectById(Integer id);

    PageInfo<Role> selectByPage(LayRequest layRequest);

    int batchDelete(Integer[] ids);
}
